package com.king.designpatterns.行为模式.策略模式;

/**
 * 具体折扣类 - 固定折扣值为1
 *
 * @author king
 * @date 2021-06-10 16:37
 */
public class FixDiscountStrategy extends DiscountStrategy{

    public FixDiscountStrategy(double price, int number) {
        super(price, number);
    }

    @Override
    public double calculateDiscount() {
        return getNumber() * 1;
    }
}
